#import <Foundation/Foundation.h>
#import "PersistentDataType.h"
#import "GPSLocation.h"

/**
 * Contains generic location specific information
 * such as the name and GPSLocation
 * 
 * @author      Justin Hollander
 * @version     0.7.0     
 * @since       0.1.0
 * @see         PersistentDataType
 */
@interface Location : NSObject<PersistentDataType> {
	NSString* name;   // location name
	GPSLocation* loc; // location's GPS location
}

@property (nonatomic, retain) NSString* name;
@property (nonatomic, retain) GPSLocation* loc;

/**
 * Initialize the location with given information.
 *
 * @param nm        the name of the location
 * @param location  location of the location
 * @return          the initialized location with details
 */
- (id)initWithDetails:(NSString*)nm point:(GPSLocation*)location;

@end
